package model;

import java.util.ArrayList;

/***
 * Class which contains the structure of a group of classes, methods, attributes, and generalizations
 * @author Federico
 *
 */
public class Model {
	private ArrayList<Class> classes;
	
	public Model(){
		classes = new ArrayList<Class>();
	}
	
	public void addClass(Class c){
		classes.add(c);
	}
	
	public ArrayList<Class> getClasses(){
		return classes;
	}
	
	public String toString(){
		String toRet="";
		for(model.Class c : classes){
			toRet+=c.toString();
		}
		return toRet;
	}
	
	public boolean isValid(){
		return !classes.isEmpty();
	}
}
